<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Carousel_1</title>
    <script src="../js/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="../css/bootstrap4.5.min.css">
    <link rel="stylesheet" href="../css/public.css">
    <link rel="stylesheet" href="../css/swiper-bundle.min.css">
    <script src="../js/swiper-bundle.min.js"></script>
    <style>
        .carousel_head_bg {
            height: 825px;
            width: 100%;
            object-fit: cover;
        }

        .carousel_head_navigation {
            position: absolute;
            width: 100%;
            top: 50%;
            padding: 0 40px;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            z-index: 10;
        }

        .carousel_head_navigation i img {
            width: 25px;
            height: 25px;

        }

        .carousel_head_navigation i {
            position: relative;
            margin: 0px;
            transition: margin 0.3s, right 0.3s;
        }

        .carousel_head_navigation i:last-child img {
            transform: rotate(180deg);
        }

        .carousel_head_navigation i:first-child::after {
            content: '';
            display: block;
            background-color: #707070;
            height: 2px;
            left: 10px;
            width: 0px;
            top: 48%;
            transition: width 0.3s, left 0.3s;
            position: absolute;
        }

        .carousel_head_navigation i:first-child:hover {
            margin-left: -5px;
        }

        .carousel_head_navigation i:first-child:hover::after {
            left: 15px;
            width: 20px;
        }

        .carousel_head_navigation i:last-child::after {
            content: '';
            display: block;
            background-color: #707070;
            height: 2px;
            left: -3px;
            width: 0px;
            top: 48%;
            transition: width 0.3s;
            position: absolute;
        }

        .carousel_head_navigation i:last-child {
            right: 0px;
        }

        .carousel_head_navigation i:last-child:hover {
            right: -5px;
        }

        .carousel_head_navigation i:last-child:hover::after {
            left: -9px;
            width: 20px;
        }

        @media (max-width:1240px) {
            .carousel_head_bg {
                height: 625px;
            }
        }

        @media (max-width:768px) {
            .carousel_head_bg {
                height: auto;
            }
            .carousel_head_navigation {
                display: none;
            }
        }
    </style>
    <script>
        $(function () {
            var mySwiper = new Swiper('.carousel_head', {
                autoplay: true,
                loop: true,
                slideClass: 'carousel_head_slide',
                navigation: {
                    nextEl: '.carousel_head_nav_next',
                    prevEl: '.carousel_head_nav_prev',
                },
            })
        })
    </script>
</head>

<body>
    <div class="carousel carousel_head swiper-container modular">
        <ul class="swiper-wrapper">
            <li class="swiper-slide carousel_head_slide">
                <img class="carousel_head_bg"
                    src="https://17802134.s61i.faiusr.com/2/AD0Ilse_CBACGAAgueef3gUo2NCjjQIw_g44uQY.jpg" alt="">
            </li>
            <li class="swiper-slide carousel_head_slide">
                <img class="carousel_head_bg"
                    src="https://17802134.s61i.faiusr.com/2/AD0Ilse_CBACGAAgueef3gUo2NCjjQIw_g44uQY.jpg" alt="">
            </li>
            <li class="swiper-slide carousel_head_slide">
                <img class="carousel_head_bg"
                    src="https://17802134.s61i.faiusr.com/2/AD0Ilse_CBACGAAgueef3gUo2NCjjQIw_g44uQY.jpg" alt="">
            </li>
        </ul>
        <div class="carousel_head_navigation">
            <i class="carousel_head_nav_prev">
                <img src="../images/navigation-back.png">
            </i>
            <i class="carousel_head_nav_next">
                <img src="../images/navigation-back.png">
            </i>
        </div>
    </div>
</body>

</html>